// vite.config.js
import { fileURLToPath, URL } from "node:url";
import path from "path";
import { defineConfig } from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/unplugin-vue-components/dist/vite.js";
import { VantResolver } from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
import { createSvgIconsPlugin } from "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///D:/%E6%B1%89%E6%96%AF%E6%A0%BC%E9%9B%85/hansgrohe_mobile/vite.config.js";
var vite_config_default = defineConfig({
  esbuild: {
    // drop: ['console', 'debugger'] // 删除 所有的console 和 debugger
  },
  css: {
    preprocessorOptions: {
      scss: {
        api: "modern-compiler"
        // 修改api调用方式
      }
    }
  },
  server: {
    https: false,
    host: true,
    port: 3007,
    open: false,
    cors: true,
    strictPort: false
  },
  plugins: [
    vue(),
    createSvgIconsPlugin({
      // 指定需要缓存的图标文件夹
      iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
      // 指定symbolId格式
      symbolId: "icon-[name]"
    }),
    AutoImport({
      imports: [
        // 需要自动导入的插件，自定义导入的API
        "vue",
        "vue-router",
        "pinia"
      ],
      resolvers: [VantResolver()]
    }),
    Components({
      resolvers: [VantResolver()]
    })
  ],
  base: "./",
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  }
  // build: {
  //   rollupOptions: {
  //     output: {
  //       chunkFileNames: `static/js/[name].[hash]${Timestamp}.js`,
  //       entryFileNames: `static/js/[name].[hash]${Timestamp}.js`,
  //       assetFileNames: `static/[ext]/[name].[hash]${Timestamp}.[ext]`
  //     }
  //   }
  // }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxcdTZDNDlcdTY1QUZcdTY4M0NcdTk2QzVcXFxcaGFuc2dyb2hlX21vYmlsZVwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcXHU2QzQ5XHU2NUFGXHU2ODNDXHU5NkM1XFxcXGhhbnNncm9oZV9tb2JpbGVcXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Q6LyVFNiVCMSU4OSVFNiU5NiVBRiVFNiVBMCVCQyVFOSU5QiU4NS9oYW5zZ3JvaGVfbW9iaWxlL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnXHJcbmltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gJ3ZpdGUnXHJcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJ1xyXG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tICd1bnBsdWdpbi1hdXRvLWltcG9ydC92aXRl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